/*
 * Copyright 2009 BioTeam Inc
 * 
 * Licensed under License GNU LESSER GENERAL PUBLIC LICENSE version 3.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 * 
 * http://www.gnu.org/copyleft/lesser.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */
package net.bioteam.appweb.ds;

import java.io.Serializable;
import java.util.Date;

public class Subscription implements Serializable, Cloneable
{
	
	Date created;
	String filename;
	long filesize;
	long letters;
	long seqs;
	Date modified;
	String name;
	long serverId;
	String serverVersion;
	String uncompmd5;
	String type;
	boolean enabled;
	boolean localds;
	boolean valid;
	public Date getCreated()
	{
		return created;
	}
	public void setCreated(Date created)
	{
		this.created = created;
	}
	public String getFilename()
	{
		return filename;
	}
	public void setFilename(String filename)
	{
		this.filename = filename;
	}
	public long getFilesize()
	{
		return filesize;
	}
	public void setFilesize(long filesize)
	{
		this.filesize = filesize;
	}
	public long getLetters()
	{
		return letters;
	}
	public void setLetters(long letters)
	{
		this.letters = letters;
	}
	public long getSeqs()
	{
		return seqs;
	}
	public void setSeqs(long seqs)
	{
		this.seqs = seqs;
	}
	public Date getModified()
	{
		return modified;
	}
	public void setModified(Date modified)
	{
		this.modified = modified;
	}
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public long getServerId()
	{
		return serverId;
	}
	public void setServerId(long serverId)
	{
		this.serverId = serverId;
	}
	public String getServerVersion()
	{
		return serverVersion;
	}
	public void setServerVersion(String serverVersion)
	{
		this.serverVersion = serverVersion;
	}
	public String getUncompmd5()
	{
		return uncompmd5;
	}
	public void setUncompmd5(String uncompmd5)
	{
		this.uncompmd5 = uncompmd5;
	}
	public String getType()
	{
		return type;
	}
	public void setType(String type)
	{
		this.type = type;
	}
	public boolean isEnabled()
	{
		return enabled;
	}
	public void setEnabled(boolean enabled)
	{
		this.enabled = enabled;
	}
	public boolean isLocalds()
	{
		return localds;
	}
	public void setLocalds(boolean localds)
	{
		this.localds = localds;
	}
	public boolean isValid()
	{
		return valid;
	}
	public void setValid(boolean valid)
	{
		this.valid = valid;
	}
	public boolean isProtein()
	{
		return getType().equals("P") ? true : false;
	}

	public boolean isDNA()
	{
		return getType().equals("N") ? true : false;
	}

}
